//
//  QSUserAccountViewModel.h
//  SinaWeiBo
//
//  Created by apple on 16/6/4.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@class QSUserAccount;

typedef void(^finish) (NSError *error);

@interface QSUserAccountViewModel : NSObject
/**
 *  登录标记
 */
@property (nonatomic, assign, readonly, getter=isUserLongin) BOOL UserLongin;

/**
 *  用户信息对象
 */
@property (nonatomic, strong) QSUserAccount* account;

/**
 *  请求用户令牌(token)
 */
- (void)loadAccessToken:(NSString *)code finish:(finish)finish;
@end
